package One;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class FileControlImpl implements IFileControl {

    private List<String> list = new ArrayList<>();

    @Override
    public void delFile(File file) {
        File[] fileArr = file.listFiles();
        for (File f : fileArr) {
            if (f.isFile()) {
                System.out.println(f.getAbsolutePath());//
                f.delete();
            } else {
                delFile(f);
            }
        }
        file.delete();
    }
}


